package com.example.service;

import com.example.dao.UserDaoImpl;
import com.example.pojo.User;

/**
 * @author kongwg
 * @create 2021-01-23 20:31
 */
public class UserServiceImpl implements UserService {
    @Override
    public User login(String username, String passwrod) {
        UserDaoImpl dao = new UserDaoImpl();
        if (dao.queryByusernameAndpassword(username, passwrod) == null) {
            return null;
        }
        return dao.queryByusernameAndpassword(username, passwrod);
    }
}
